package com.wateray.ipassbook.ui.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import com.wateray.ipassbook.ui.view.contentPanel.PageContainer;
import com.wateray.ipassbook.ui.view.contentPanel.PassbookPage;
import com.wateray.ipassbook.ui.view.contentPanel.TransferPage;
import com.wateray.ipassbook.util.ImageManager;
import com.wateray.ipassbook.util.LanguageLoader;

/**
 * @author wateray
 * @create 2009-5-29
 */
public class ShowTransferPageAction extends AbstractAction {


        /**
         * serialVersionUID
         */
        private static final long serialVersionUID = 1L;
        public ShowTransferPageAction(){
                super(LanguageLoader.getString("PassbookTransfer_Page"), ImageManager.getImageIconByShortName("gimp.png"));
                putValue(SHORT_DESCRIPTION, LanguageLoader.getString("PassbookTransfer_Page"));
        }
        @Override
        public void actionPerformed(ActionEvent e) {
                // TODO Auto-generated method stub
                PageContainer.getInstance().addPage(TransferPage.getInstance(), TransferPage.getInstance().getPageId());
        }

}
